package org.adorsys.aderp.aderplogin.service;

import java.util.List;

import org.adorsys.aderp.aderplogin.domain.AderpPersonRef;


public class AderpPersonRefServiceImpl implements AderpPersonRefService {

	@Override
	public AderpPersonRef findByPersonNumber(String personNumber) {
		List<AderpPersonRef> found = aderpPersonRefRepository.findByPersonNumber(personNumber);
		if(found.isEmpty()) return null;
		return found.iterator().next();
	}
}
